package com.zq.learn.spark.springspark;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * StatisticsResult
 *
 * @author ZhangQi
 * @date 2020/2/12
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Document(collection = "StatisticsResult")
public class StatisticsResult {
  @Indexed
  private String id;
  private String day;
  private String title;
  private Integer value;

  public StatisticsResult(String id,String day, String title, Integer value) {
    this.id = id;
    this.day= day;
    this.title = title;
    this.value = value;
  }

  public String getDay() {
    return day;
  }

  public void setDay(String day) {
    this.day = day;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public Integer getValue() {
    return value;
  }

  public void setValue(Integer value) {
    this.value = value;
  }
}
